Skip to content

fix: keep extensions, transfers and emptying the trash to the person - #28

Merged
nodemode-ai merged 3 commits into
mainfrom
fix/owner-decisions-2026-11-29
Nov 29, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
fix/owner-decisions-2026-11-29

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Window commands in the extensions.* and transfer.* families, and trash commands that delete for good, now work only for the person signed in to the window. API tokens, OAuth grants and form-md cli scripts get a clear refusal and do not see these commands listed.
  • Opening the trash and restoring from it (trash.open, trash.restore) and moving a page to the trash (page.trash) still work for agents. Any other trash.* command is person-only by default.
  • The docs (wiki Terminal-and-Claude-Code, Extensions, API-and-agents; docs/EXTENSIONS.md; README; the connecting reference) now say that the extension tools and commands are refused for agents.

Tests

  • Each change has tests that fail on the code before it.
  • The repo's CI commands were run locally on macOS; every local failure also fails on main in the same environment. Please rely on this PR's CI for Linux and Windows.

How to ship

  • Follows the earlier hardening PR, already merged. Independent of other repos. No version bump.

…gned-in person

Window commands in the extensions. and transfer. families, and every
trash. command except opening the trash and restoring from it, are now
refused for API tokens, OAuth grants and form-md cli scripts, and are no
longer listed or described to them. The refusal says the command works
only for the person signed in to the window.
…rson

Commands an extension contributes (ext.<extension id>.<command id>) run the same code as extensions.run, so they are now person-only as well and are no longer listed or described to API tokens, OAuth grants or form-md cli scripts.
DELETE /api/pages/{id}/forever and DELETE /api/workspaces/{id}/trash now need a signed-in browser or the desktop app; an API token or OAuth grant gets session_only. Moving a page to the trash and restoring it still work with a token.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 20:09
@nodemode-ai
nodemode-ai merged commit 0618169 into main Nov 29, 2026
3 checks passed
@nodemode-ai
nodemode-ai deleted the fix/owner-decisions-2026-11-29 branch November 29, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants